import instance from "../util/request";
export async function deleteBook(bookId) {
  try {
    const response = await instance.delete(`/book/${bookId}`); // 使用delete方法
    return response.data;
  } catch (error) {
    console.error("删除图书失败:", error);
    throw error;
  }
}
